This page last changed on Feb 20, 2008 by scytacki.

Here is the current list of sensor data producers:
Sensor Data Producers

predefined

  • predefined data set
  • these are mostly already entered
  • the name on the OTDataGraphable object will be the title of the graph.
  • this name will also show up if this predefined set is referenced by another data collector
    <OTDataGraph name="sample graph of data">
    	<graphables>
    		<OTDataGraphable 
    		    local_id="data_graphable1" 
    		    connectPoints="true" 
    		    color="0x0000ff" 
    		    drawMarks="false" 
    		    name="Dataset1" 
    		    xColumn="0" 
    		    yColumn="1">
    			<dataStore>
    				<OTDataStore local_id="datastore1" numberChannels="2">
    					<channelDescriptions>
    						<OTDataChannelDescription precision="0" unit="s" />
    						<OTDataChannelDescription precision="-2" unit="m" />
    					</channelDescriptions>
    					<valuesString>
    						0 0
    						1 1
    						2 4
    						3 9
    						4 16
    						5 25
    					</valuesString>
    				</OTDataStore>
    			</dataStore>
    		</OTDataGraphable>
    	</graphables>
    	<xDataAxis>
    		<OTDataAxis 
    		    min="0" 
    		    max="10" 
    		    label="Time" 
    		    units="s">
    			<graphables>
    				<object refid="${data_graphable1}" />
    			</graphables>
    		</OTDataAxis>
    	</xDataAxis>
    	<yDataAxis>
    		<OTDataAxis 
    		    min="0" 
    		    max="5" 
    		    label="Distance" 
    		    units="m">
    			<graphables>
    				<object refid="${data_graphable1}" />
    			</graphables>
    		</OTDataAxis>
    	</yDataAxis>
    </OTDataGraph>
    

For an example see:

<data_collector refid="34" name="motion_i01_2004_09_16_02 (sine wave)" />

prediction

  • graph sketcher
     
            <OTDataCollector name="Prediction Example">
              <source>
                <OTDataGraphable connectPoints="true" controllable="true" color="0x0000ff" drawMarks="false" name="Prediction Example" xColumn="0" yColumn="1">
                  <dataStore>
                    <OTDataStore local_id="data_set"/>
                  </dataStore>
                </OTDataGraphable>
              </source>
              <xDataAxis>
                <OTDataAxis min="0" max="30" label="Time" units="s"/>
              </xDataAxis>
              <yDataAxis>
                <OTDataAxis min="10" max="40" label="Temperature" units="degC"/>
              </yDataAxis>
            </OTDataCollector>
    
    

single value

  • single numeric display with popup graph
  • saves the final numeric value
    <OTDataCollector name="Basic Example" singleValue="true">
    	<source>
    		<OTDataGraphable 
    		    connectPoints="true" 
    		    color="0x0000ff" 
    		    drawMarks="false" 
    		    name="Dataset1" 
    		    xColumn="0" 
    		    yColumn="1">
    			<dataProducer>
    <!-- put data producer here -->
    				<object refid="${temperature_dp}" />
    			</dataProducer>
    			<dataStore>
    				<OTDataStore local_id="data_set" />
    			</dataStore>
    		</OTDataGraphable>
    	</source>
    	<xDataAxis>
    		<OTDataAxis min="0" max="30" label="Time" units="s" />
    	</xDataAxis>
    	<yDataAxis>
    		<OTDataAxis min="10" max="40" label="Temperature" units="degC" />
    	</yDataAxis>
    </OTDataCollector>
    

basic

  • graphs data collection
  • automatically saves last data set
  • has author asigned name
    <OTDataCollector name="Basic Example">
    	<source>
    		<OTDataGraphable 
    		    connectPoints="true" 
    		    color="0x0000ff" 
    		    drawMarks="false" 
    		    name="Dataset1" 
    		    xColumn="0" 
    		    yColumn="1">
    			<dataProducer>
    <!-- put data producer here -->
    				<object refid="${temperature_dp}" />
    			</dataProducer>
    			<dataStore>
    				<OTDataStore local_id="data_set" />
    			</dataStore>
    		</OTDataGraphable>
    	</source>
    	<xDataAxis>
    		<OTDataAxis min="0" max="30" label="Time" units="s" />
    	</xDataAxis>
    	<yDataAxis>
    		<OTDataAxis min="10" max="40" label="Temperature" units="degC" />
    	</yDataAxis>
    </OTDataCollector>
    

multiple

  • multiple basic data collection
  • allows student to save multiple named data sets

The only difference is the dataSetFolder element

<OTDataCollector name="Basic Example">
	<source>
		<OTDataGraphable 
		    connectPoints="true" 
		    color="0x0000ff" 
		    drawMarks="false" 
		    name="Dataset1" 
		    xColumn="0" 
		    yColumn="1">
			<dataProducer>
<!-- put data producer here -->
				<object refid="${temperature_dp}" />
			</dataProducer>
			<dataStore>
				<OTDataStore local_id="data_set" />
			</dataStore>
		</OTDataGraphable>
	</source>
        <dataSetFolder>
           <OTFolderObject/>
        </dataSetFolder>
	<xDataAxis>
		<OTDataAxis min="0" max="30" label="Time" units="s" />
	</xDataAxis>
	<yDataAxis>
		<OTDataAxis min="10" max="40" label="Temperature" units="degC" />
	</yDataAxis>
</OTDataCollector>

over predefined

  • collection over a predefined data set
  • allows student to save multiple named data sets
Data Collector Text

this should be the same as other data data collectors in an investigation
you can use the same datacollector for all them.
if there are no parameters then there won't be a predfined data set.

<OTDataCollector name="Over Predefined Test">
	<source>
		<OTDataGraphable 
		    connectPoints="true" 
		    color="0x0000ff" 
		    drawMarks="false" 
		    name="Dataset1" 
		    xColumn="0" 
		    yColumn="1">
			<dataProducer>
<!-- start::: replace this with a sensor data producer here -->
				<object refid="${temperature_dp}" />
<!-- end  :::  -->
			</dataProducer>
			<dataStore>
				<OTDataStore />
			</dataStore>
		</OTDataGraphable>
	</source>
	<graphables>
<!-- this is a reference to the parameters in the Data Collector Response -->
		<dc_parameters />
	</graphables>
	<xDataAxis>
		<OTDataAxis min="0" max="30" label="Time" units="s" />
	</xDataAxis>
	<yDataAxis>
		<OTDataAxis min="10" max="40" label="Temperature" units="degC" />
	</yDataAxis>
</OTDataCollector>
Data Collector Response Parameter

This text will go in the parameters field of the data collector response.

 
<OTDataGraphable 
    connectPoints="true" 
    color="0x0000ff" 
    drawMarks="false" 
    name="Dataset1" 
    xColumn="0" 
    yColumn="1">
	<dataStore>
<!-- this reference id should point to the datastore from a predefined data collector
   the id will be changed from what is in that data collector text.  It will have 
   "dcid_%data_collector_id%_" prefixed on it. 
 -->
		<object refid="${datastore1}" />
	</dataStore>
</OTDataGraphable>

over prediction

  • collection over a data set from graph sketcher
  • allows student to save multiple named data sets
Data Collector Text
  • this is the same as the over predefined data collector text
Data Collector Response Parameters
<OTDataGraphable 
    connectPoints="true" 
    color="0x0000ff" 
    drawMarks="false" 
    name="Dataset1" 
    xColumn="0" 
    yColumn="1">
	<dataStore>
<!-- this reference id should point to the datastore from a prediction data collector
   the id will be changed from what is in that data collector text.  It will have 
   "rid_%response_id%_" prefixed on it.  That is the data collector
   id of the prediction, and the response id of where the prediction is used. 
 -->
		<object refid="${datastore1}" />
	</dataStore>
</OTDataGraphable>

compare

  • compare previously collected data sets
  • no new data collection
  • previously collected data sets must be from any data collection that only allows one saved data set:
    basic, predefined, prediction
Document generated by Confluence on Jan 27, 2014 16:43